/* 视频选择器样式 */
.video-selector {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
}

/* 当前视频显示区域 */
.current-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.current-video:hover {
  border-color: #00a1d6;
  background: #333;
}

.video-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.video-thumbnail {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  font-size: 20px;
  color: #999;
}

.video-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.video-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.video-duration {
  font-size: 12px;
  color: #00a1d6;
  font-weight: 500;
}

.video-description {
  font-size: 12px;
  color: #999;
  line-height: 1.2;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  margin-left: 8px;
}

.arrow {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s ease;
}

.arrow.up {
  transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

.video-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 4px;
}

.dropdown-content {
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-height: 400px;
  overflow-y: auto;
}

/* 视频分组 */
.video-section {
  padding: 16px;
}

.video-section:not(:last-child) {
  border-bottom: 1px solid #444;
}

.video-section h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.video-item:hover {
  background: #333;
}

.video-item.active {
  background: rgba(0, 161, 214, 0.1);
  border: 1px solid rgba(0, 161, 214, 0.3);
}

.video-item .video-thumbnail {
  width: 40px;
  height: 30px;
}

.video-item .thumbnail-placeholder {
  font-size: 16px;
}

.video-item .video-name {
  font-size: 13px;
}

.video-item .video-duration {
  font-size: 11px;
}

.video-item .video-description {
  font-size: 11px;
  max-width: 180px;
}

.current-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #00a1d6;
  font-size: 14px;
  font-weight: bold;
}

/* 上传区域 */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px dashed #555;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #333;
}

.upload-area:hover {
  border-color: #00a1d6;
  background: #3a3a3a;
}

.upload-area.drag-over {
  border-color: #00a1d6;
  background: rgba(0, 161, 214, 0.1);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: #999;
}

.upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.primary-text {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.secondary-text {
  font-size: 12px;
  color: #999;
}

.format-text {
  font-size: 11px;
  color: #777;
  margin-top: 4px;
}

/* 滚动条样式 */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .video-selector {
    max-width: 100%;
  }
  
  .current-video {
    padding: 10px 12px;
  }
  
  .video-info {
    gap: 8px;
  }
  
  .video-thumbnail {
    width: 40px;
    height: 30px;
  }
  
  .video-name {
    font-size: 13px;
  }
  
  .video-description {
    max-width: 150px;
  }
  
  .upload-area {
    padding: 20px 16px;
  }
  
  .upload-icon {
    font-size: 28px;
  }
}
